
;;;;;;
;;首发于
;;专业 Emacs 入门教程


;; install emacs29.4
;; https://caowd.com/linux/ubuntu/ubuntu22%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85emacs29.4/
;; becourse this version include eglot

;; emacs 27.0之后不再需要调用package-initialize了呀
;; (when (version< emacs-version "27.0") 
;;   (package-initialize))
;; 有package.el的Emacs都不需要手动添加(package-initialize) Emacs启动的时候会自动运行的



(message "require start")

(setq load-path (cons "~/.emacs.d/lisp/package_mgr" load-path))
(setq load-path (cons "~/.emacs.d/lisp/vim" load-path))
(setq load-path (cons "~/.emacs.d/lisp/common" load-path))
(setq load-path (cons "~/.emacs.d/lisp/buffer" load-path))
(setq load-path (cons "~/.emacs.d/lisp/my_window" load-path))
(setq load-path (cons "~/.emacs.d/lisp/tramp" load-path))
(setq load-path (cons "~/.emacs.d/lisp/file" load-path))
(setq load-path (cons "~/.emacs.d/lisp/grep_my" load-path))
(setq load-path (cons "~/.emacs.d/lisp/dir" load-path))
(setq load-path (cons "~/.emacs.d/lisp/mode_line" load-path))
(setq load-path (cons "~/.emacs.d/lisp/fly_check" load-path))
(setq load-path (cons "~/.emacs.d/lisp/my_eww" load-path))
(setq load-path (cons "~/.emacs.d/lisp/my_shell" load-path))
(setq load-path (cons "~/.emacs.d/lisp/my_company" load-path))
(setq load-path (cons "~/.emacs.d/lisp/pinyin" load-path))
(setq load-path (cons "~/.emacs.d/lisp/disable_mouse" load-path))
(setq load-path (cons "~/.emacs.d/lisp/ivy_mode" load-path))
(setq load-path (cons "~/.emacs.d/lisp/my_eglot" load-path))


(message "load_path end")


(defun init_file()
  (interactive)
  (find-file-other-window "~/.emacs.d/init.el"))





(require 'package_mgr)
(require 'vim)
(require 'common)
(require 'buffer)
(require 'my_window)
(require 'my_tramp)
(require 'grep_my)
(require 'file)
(require 'dir)
(require 'mode_line)
(require 'my_company)
(require 'fly_check)
(require 'my_eww)
(require 'my_shell)
(require 'ivy_mode)
(require 'pinyin)
(require 'disable_mouse)
(require 'my_eglot)



(message "require end ")



(evil-leader/set-key
  "ke" 'kill-emacs)
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(elpy-rpc-virtualenv-path 'current)
 '(package-selected-packages
   '(company-lsp yasnippet-snippets web-mode fanyi dap-mode counsel ivy 2048-game helm-lsp which-key projectile lsp-java eglot lsp-ui lsp-mode python-mode company-go go-impl go-errcheck jedi elpy markdown-mode posframe use-package pyim company popup-switcher flx-isearch isearch-symbol-at-point color-moccur names chinese-word-at-point flycheck yasnippet auto-complete window-numbering smex monokai-theme evil-leader)))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
